package com.hedd.shop.pojo.qo;

import java.math.BigDecimal;

/**
 * @author ludi
 * @date:2020/8/30 22:04
 * @description:添加购物车传输的参数
 */
public class CartAddQO {
    private int productId;
    private int userId;
    private BigDecimal price;

    public CartAddQO() {
    }

    public CartAddQO(int productId, int userId, BigDecimal price) {
        this.productId = productId;
        this.userId = userId;
        this.price = price;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "CartAddQO{" +
                "productId=" + productId +
                ", userId=" + userId +
                ", price=" + price +
                '}';
    }
}
